package com.class05._super.easy;

/**
 * @ClassDescription:
 * @JdkVersion: 17
 * @Author: yxy
 * @Created: 2024/4/9 10:46
 */
public class HouseCar extends Car {
    //    b.构造方法不能继承
    public HouseCar() {
//        this("红色","1000");
    }

    public void eat() {
        this.running();
//        this("红色","1000");
        this.match();
        System.out.println("可以在房车里吃饭 ");
    }

    public void sleep() {
        System.out.println("可以在房车里睡觉 ");
    }
}
